<?php
/**
 * @author Adam Krupa <poczta@adamkrupa.com>
 * Date: 22.11.11 Time: 17:49
 */

function __autoload($file){
    require_once 'class/'.$file.'.php';
}

define('SYS_PATH', dirname(__FILE__));
require_once SYS_PATH. '/library/Smarty/Smarty.class.php';

$view = new Smarty();
$view->setTemplateDir(SYS_PATH.'/views');
$view->setCompileDir(SYS_PATH.'/views_c');
$view->assign('zmienna', array('aaa', 'bbb', 'ccc'));
$view->display('index.tpl');

echo 'abbb';